﻿using JwtApiDemo.Comm;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;

namespace JwtApiDemo.Controllers
{
    /// <summary>
    /// 获取数据测试
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class JwtTestController : ControllerBase
    {
        private readonly ILogger<JwtTestController> _logger;

        public JwtTestController(ILogger<JwtTestController> logger)
        {
            _logger = logger;
        }
        /// <summary>
        /// 测试数据
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public JsonResult GetTestData()
        {

            return new JsonResult(new OperationResult(OperationResultType.Success, "获取数据成功", 12345));
        }
   
    }
}
